<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<link type="text/css" href="<c:url value="/resources/css/chamber.css" />" rel="stylesheet" media="screen"/>
<html>
	<body onload='document.chamberLogin.j_username.focus();'>
		<c:if test="${not empty error}">  
	      <div class="errorblock">  
	       Your login attempt was not successful, try again.  
	     Caused :  
	       ${sessionScope["SPRING_SECURITY_LAST_EXCEPTION"].message}  
	      </div>  
	     </c:if>
		<div>
			<form:form name='chamberLogin' action="j_spring_security_check" method='POST'>
				<form:errors path="*" cssClass="errorblock" element="div"/>
				<div class="loginDiv">
					<table class="loginTable">  
						<tr>  
				        	<td class="labelfield">UserName:</td>  
				        	<td class="inputfield"><input type='text' name='j_username' value=''></td>  
						</tr>  
						<tr>  
				        	<td class="labelfield">Password:</td>  
				        	<td class="inputfield"><input type='password' name='j_password' /></td>  
						</tr>  
						<tr>  
				        	<td colspan='2'><input name="submit" type="submit" value="submit" /></td>  
						</tr> 
					</table>
				</div>
			</form:form>
		</div>
	</body>
</html>